home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / files / seek < prev    next >
Encoding:
Text File  |  1993-10-26  |  1.3 KB  |  34 lines  |  [TEXT/$Tcl]

  1.  
  2.           seek fileId offset ?origin?
  3.  
  4.  
  5.      DESCRIPTION
  6.           Change the current access position for fileId.  FileId  must
  7.           have  been the return value from a previous call to open, or
  8.           it may be stdin, stdout, or stderr to refer to  one  of  the
  9.           standard  I/O  channels.   The  offset  and origin arguments
  10.           specify the position at which the next read  or  write  will
  11.           occur  for  fileId.  Offset must be an integer (which may be
  12.           negative) and origin must be one of the following:
  13.  
  14.           start
  15.                The new access position will be offset bytes  from  the
  16.                start of the file.
  17.  
  18.           current
  19.                The new access position will be offset bytes  from  the
  20.                current  access  position;  a negative offset moves the
  21.                access position backwards in the file.
  22.  
  23.           end  The new access position will be offset bytes  from  the
  24.                end  of  the file.  A negative offset places the access
  25.                position before the end-of-file, and a positive  offset
  26.                places the access position after the end-of-file.
  27.  
  28.           The origin argument defaults to start.  This command returns
  29.           an empty string.
  30.  
  31.  
  32.      KEYWORDS
  33.           access position, file, seek
  34.